//
//  CoreDataManager.h
//  CoreData持久化
//
//  Created by apple on 15/11/20.
//  Copyright © 2015年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@interface CoreDataManager : NSObject

//设置这个方法为单例
+(CoreDataManager *)defaults;





//数据管理器类
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
//模型管理器类
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
//连接器类
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
//保存什么东西的
- (void)saveContext;

//存放数据的路径
- (NSURL *)applicationDocumentsDirectory;
@end
